Release 10.1A: OpenEdge Getting Started:
New and Revised Features
Views technique
When using native views defined in your foreign data source, you can generate a record format that serves as a 4GL buffer to retrieve database results for a
RUN STORD-PROCstatement. The buffer definition allows access to individual columns of the result set without having to parse the results. Unlike theproc-text-bufferandLOAD-RESULT-INTOtechniques, the native view technique requires view administration on the foreign data source. Therefore, you must balance the capabilities of native views against the goals you have for your data.Review the example presented in Figure 2–3.
Figure 2–3: Views technique example
To process the results of the
send-sql-statementpresented in Figure 2–3, you must create a view,_BUFFER_cust-results, before you run the statement. Figure 2–4 shows the SQLSELECTstatement contained within this view’s definition.
Figure 2–4: SQL statement inside the native view
Figure 2–3 and Figure 2–4 illustrate that using the view technique requires up front planning and management to successfully implement.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |